package cn.tradewin.advisor.components;

import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.Parameter;

public class Phase {
	
	@Parameter(required=false)
	private String name;
	
	private int count = 3;
	private int i = 1;
	
	boolean beginRender(MarkupWriter out) {
		out.element("input", "type", "text", "value", "how are you");
		out.end();
		return true;
	}
	
	boolean afterRenderBody(MarkupWriter out) {
		if (i++ < count) return false;
		return true;
	}
}
